package com.tanhua.dubbo.server.pojo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 封装用户喜欢的语音
 * 保存到数据库
 */
@Data
@Document(collection = "audio_like")
public class AudioLike implements Serializable {
    private static final long serialVersionUID = 432183095092218542L;
    private ObjectId id;//主键
    private Long userId;//登录用户的id
    private Long sendUserId; //发送语音的用户id
    private String url; //语音的保存地址
    private Long created; //创建时间
}
